// src/Router.tsx
import React from 'react';
import { useRoutes } from 'react-router-dom';
import { routes } from './router/index';

const Router: React.FC = () => {
  return useRoutes(routes);  // 根据路由配置渲染对应的页面
};

export default Router;
